GdkGLContext: Change the way we track the current context
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Oct 2014 10:46:09 +0000 (11:46 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Oct 2014 11:43:03 +0000 (12:43 +0100)
commitfb50015519bee516f7a83c64034d11cd9a606246
tree9273f19487a89ed8f9416bb74853cf3512081dfd
parenteb8f60f141ac50900ddc5b4df8c72ecb31625a89
GdkGLContext: Change the way we track the current context

To properly support multithreaded use we use a global GPrivate
to track the current context. Since we also don't need to track
the current context on the display we move gdk_display_destroy_gl_context
to GdkGLContext::discard.
gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkglcontext-wayland.c
gdk/wayland/gdkglcontext-wayland.h
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h